﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class D05_Vector3 : MonoBehaviour
{
    public Transform cubeA, cubeB;
    //求cubeA前方和cubeB前方夹角
    private void Update1()
    {
        print(Vector3.Angle(cubeA.forward, cubeB.forward));
    }

    //求cbueA到cubeB的距离
    private void Update()
    {
        print(Vector3.Distance(cubeA.position, cubeB.position));
    }
}